/**
 * Created by karkarrotxu on 2017/01/19.
 */
qui(
    function (require, exports, module) {
        window.Specimen = window.Specimen || {
            version: '1.0'
        };
        //http://10.1.22.212:8282/add?album_id=xxx&qipu_id=xxx&news_name=xxx&album_name=xxx&channel=xxx&start_time=xxx&end_time=xxx
        //http://10.1.22.212:8282/modify?qipu_id=xxx&news_name=xxx
        //http://10.1.22.212:8282/delete?album_id=xxx&qipu_id=xxx
        //http://10.1.22.212:8282/query?start=0&end=39
        //http://10.1.22.212:8282/query_shot?album_id=xxx&start=0&end=99
        //http://10.1.22.212:8282/update_shot?album_id=xxx&pic_name=name1,name2,name3...
        //http://10.1.22.212:8282/query_ocr_loc?album_id=xxx&start=0&end=99
        //http://10.1.22.212:8282/down_shot?album_id=xxx&qipu_id=xxx
        //http://10.1.22.212:8282/down_topic?album_id=xxx&qipu_id=xxx
        Specimen.Constant = {
            baseApiUrl: "/api/",
            test_api_base_url: "http://10.110.48.80:8282/",
            online_api_base_url: "http://10.77.47.63:8282/",
          //  online_api_base_url: "http://shotocrdump.qiyi.domain:8282/",
            online_source_query_url: "http://mams2.qiyi.domain/",
            test_source_query_url: "http://10.15.187.90/",
            devMode: auth.dev()
        }
//http://10.15.187.90/mams-web/services/program/getProductVideoByAlbumId.action?albumId=200005923&globalPublishDateStart=20170227&globalPublishDateEnd=20170301
        //http://mams2.qiyi.domain/mams-web/services/program/getProductVideoByAlbumId.action?albumId=200005553&globalPublishDateStart=20160406&globalPublishDateEnd=20160408
//mams-web/services/program/getProductVideoByAlbumId.action
        Specimen.urlConfig = (function () {
            var useUrl = Specimen.Constant.baseApiUrl;
            var serverUrl = auth.dev() ? Specimen.Constant.test_api_base_url : Specimen.Constant.online_api_base_url;
            var source_query_url = ( auth.dev() ? Specimen.Constant.test_source_query_url : Specimen.Constant.online_source_query_url ) + "mams-web/services/program/getProductVideoByAlbumId.action";
            var getSpecimenListUrl = serverUrl + "query";
            var addSpecimenUrl = serverUrl + "add";
            var delSpecimenUrl = serverUrl + "delete"
            var modifySpecimenUrl = serverUrl + "modify";
            var downloadShotUrl = serverUrl + "down_shot";
            var downloadTopicUrl = serverUrl + "down_topic";
            var queryShotUrl = serverUrl + "query_shot";
            var updateShotUrl = serverUrl + "update_shot";
            var downShotUrl = serverUrl + "down_shot";
            var downTopicUrl = serverUrl + "down_topic";
            return {
                getSpecimenListUrl: getSpecimenListUrl,
                delSpecimenUrl: delSpecimenUrl,
                addSpecimenUrl: addSpecimenUrl,
                modifySpecimenUrl: modifySpecimenUrl,
                downloadShotUrl: downloadShotUrl,
                downloadTopicUrl: downloadTopicUrl,
                queryShotUrl: queryShotUrl,
                updateShotUrl: updateShotUrl,
                downShotUrl: downShotUrl,
                downTopicUrl: downTopicUrl,
                source_query_url: source_query_url
            }
        })()
    }
);